package cn.csc.module.product.controller.admin.spu.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.List;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - spu信息 Excel 导出 Request VO", description = "参数和 SpuPageReqVO 是一致的")
@Data
public class SpuExportReqVO {

    @ApiModelProperty(value = "品牌ID")
    private BigInteger brandId;

    @ApiModelProperty(value = "分类ID")
    private BigInteger categoryId;

    @ApiModelProperty(value = "店铺分类ID")
    private BigInteger shopCategoryId;

    @ApiModelProperty(value = "店铺id")
    private BigInteger shopId;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "授权手机号")
    private String phone;

    @ApiModelProperty(value = "卖点")
    private String sellingPoint;

    @ApiModelProperty(value = "商品介绍主图")
    private String mainImgUrl;

    @ApiModelProperty(value = "商品图片 多个图片逗号分隔")
    private String imgUrls;

    @ApiModelProperty(value = "商品视频")
    private String video;

    @ApiModelProperty(value = "售价，整数方式保存")
    private BigDecimal priceFee;

    @ApiModelProperty(value = "市场价，整数方式保存")
    private BigDecimal marketPriceFee;

    @ApiModelProperty(value = "状态 -1:删除, 0:下架, 1:上架")
    private Integer status;

    @ApiModelProperty(value = "审核状态：0：本地  5:待审核  10:审核通过  15:审核不通过")
    private Integer verifyStatus;

    @ApiModelProperty(value = "是否企业购")
    private Integer hasShop;

    @ApiModelProperty(value = "sku是否含有图片 0无 1有")
    private Integer hasSkuImg;

    @ApiModelProperty(value = "序号")
    private Integer seq;

    @ApiModelProperty(value = "状态")
    private List<String> statusList;

    @ApiModelProperty(value = "所有子类目集合")
    private List<BigInteger> categoryList;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @ApiModelProperty(value = "审核时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] verifyTime;

    @ApiModelProperty(value = "商家时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[]  onlineTime;

}
